﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Heavy_Metals
{
    public partial class RegisterCompany : Form
    {
        public FormLogin fl = new FormLogin();
        public RegisterCompany(FormLogin formLogin)
        {
            InitializeComponent();
            this.fl = formLogin;//获取登录窗口
        }

        private void RegisterCompany_Load(object sender, EventArgs e)
        {

        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.quanxian.Text.Equals("企业"))
            {
                RegisterCompany rc = new RegisterCompany(this.fl);
                rc.Show();
                this.Close();
            }
            else
            {
                RegisterGovernment rg = new RegisterGovernment(this.fl);
                rg.Show();
                this.Close();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            fl.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
            fl.Show();
        }
    }
}
